package com.wanmait.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanmait.community.entity.Notice;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface NoticeMapper extends BaseMapper<Notice> {

    List<Notice> selectNoticeList(@Param("notice") Notice notice, @Param("endCreatTime")Date endCreatTime);

    void insertNotice(Notice notice);

    Notice selectNoticeById(Integer id);

    void deleteNoticeById(Integer id);

    Notice selectNoticeByNoticeId(Integer id);

    void updateNoticeby(Notice notice);

}